package com.pashanhoo.datastructure;

public class TestClass {
    public static void main(String[] args) {
        int leftShift = 10;
        System.out.println("十进制:" + leftShift + ", 二进制:" + Integer.toBinaryString(leftShift));
        short letfShift = 10;
        int newLeftShift = letfShift << 2;
        System.out.println("左移2位后十进制:" + newLeftShift + ", 左移2位后二进制" + Integer.toBinaryString(newLeftShift));    //正整数x左移n位后的十进制结果，x = x * 2^n
    }
}